package com.neuedu.yyzx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neuedu.yyzx.po.Menu;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【menu(菜单权限表)】的数据库操作Mapper
 * @createDate 2025-04-14 14:27:21
 * @Entity com.neuedu.yyzx.po.Menu
 */
public interface MenuMapper extends BaseMapper<Menu> {

    List<Long> getRoleGrantMenu(Long id);

    /**
     * 根据用户id获取已授权的菜单
     *
     * @param userId
     * @return
     */
    List<Menu> getUserGrantMenus(Long userId);

}




